package com.mdd.common.mapper.course;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.course.CourseCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 课程分类Mapper
 * @author panweiliang
 */
@Mapper
public interface CourseCategoryMapper extends IBaseMapper<CourseCategory> {

    @Select({"SELECT id FROM ls_course_category WHERE pid = #{categoryId}"})
    List<Integer> getChildrenCategoryId(Integer categoryId);

}
